package sctu.edu.java.year2016.team02.wanggaowen.Rewrite;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * Created by 15c on 2016/6/2.
 */
public class MyWrite extends FileOutputStream {

    public MyWrite(File file) throws FileNotFoundException{
       super(file);
   }
    public void write(String Conment){
        try {
            this.write(Conment.getBytes("utf-8"));
        } catch (IOException e) {
            e.printStackTrace();
        }

    }


}

